home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / renaisnc / delaunay.txt < prev    next >
Encoding:
Text File  |  1992-01-04  |  2.2 KB  |  51 lines

  1. Okay.  The program I have is called "Delaunay" and is available for
  2. anonymous FTP from photon.utah.edu.  It's in ~ftp/pub/Delaunay.tar.Z.
  3. (Don't forget to use binary mode.)
  4.  
  5. It is based on a program by the same name that Ken Sloan wrote some
  6. time ago.  I hacked it to do several things:
  7.  
  8.    1) Accept the output of Durer when Durer is used with the -aL switch
  9.  
  10.    2) Maintain both the triangulation and the sampling kD-tree so that
  11.       the user can view either one.
  12.  
  13.    3) Call a set of device dependent animation routines so that the user
  14.       can view the triangulation (or kDtree) as it is constructed.
  15.  
  16.  
  17. There are two devices currently supported:  "null" which does nothing but
  18. compiles on anything and  "iris" which is for the SGI 4D series and uses the
  19. GL library.
  20.  
  21. The null device is a good place to start from for a new port since it
  22. has all the stubs in place.  You can look at iris.c to figure out what
  23. each stub is supposed to do.  There is a function called
  24. "AnimateDoEvent" that lets the user interact with the animation by
  25. pressing function keys or doing things with the mouse.  For example,
  26. they can choose whether they want to see the triangulation or the
  27. kDtree cells.  You can leave that as a stub if you really don't care
  28. about interaction and just want to watch the animation.
  29.  
  30.  
  31. Oh yeah, Delaunay can accept output from Durer in either of two forms:
  32. BINARY or ASCII.  You select which form at compile time.  The compile
  33. switch is "-DBINARY" for binary mode.  Durer should have the same
  34. makefile option.  BINARY is faster but requires that Durer and
  35. Delaunay run on machines that share the same floating point format.
  36.  
  37.  
  38. Generally, I hook Durer and Delaunay together like this:
  39.  
  40. Durer -x 128 -y 128 -m 3 -aL -ar 1 -aR 256 < some_object.wd  | \
  41. Delaunay -
  42.  
  43. I forget what the "-" means in the Delaunay command line but I think it means
  44. to do online animation rather than running in batch mode.  The Durer options
  45. should be document in the "Durer -help" message.
  46.  
  47. Of course, for best performance you may want to run Durer on a different
  48. processor than the machine running Delaunay and doing the animation.
  49. Durer tends to be the bottleneck rather than Delaunay but its still worthwhile
  50. to run them on different machines if possible.
  51.